def run(params:list[str]):
    from ApiBase import apiBase
    try:   
        sys_prompt = apiBase.argv(params,1,"你是聊天助手")
        usr_prompt = apiBase.argv(params,2,"hi")
        code = apiBase.argv(params,3,"")
        error=apiBase.argv(params,4,"")
        return apiBase.llm_chat(sys_prompt,usr_prompt,code,error)
    except Exception as e:
        return f"function error:{e}"